/* 
 * File:   driverSensors_baro.h
 * Author: bram
 *
 * Created on November 23, 2013, 7:55 PM
 */

#ifndef DRIVERSENSORS_BARO_H
#define	DRIVERSENSORS_BARO_H

#ifdef	__cplusplus
extern "C" {
#endif

	#define BARO_CONFIG_STANDBY_ON		0x00
	#define BARO_CONFIG_STANDBY_OFF		0x01

	#define BARO_CONFIG_ONE_SHOT			0x02

	#define BARO_CONFIG_OVERSAMPLE_1		0x00
	#define BARO_CONFIG_OVERSAMPLE_2		0x08
	#define BARO_CONFIG_OVERSAMPLE_4		0x10
	#define BARO_CONFIG_OVERSAMPLE_8		0x18
	#define BARO_CONFIG_OVERSAMPLE_16	0x20
	#define BARO_CONFIG_OVERSAMPLE_32	0x28
	#define BARO_CONFIG_OVERSAMPLE_64	0x30
	#define BARO_CONFIG_OVERSAMPLE_128	0x38

	#define BARO_CONFIG_OUTPUT_RAW		0x40
	#define BARO_CONFIG_MODE_ALTIMETER	0x80
	#define BARO_CONFIG_MODE_BAROMETER	0x00


	#define MPL3115_ADDRESS		0xC0

	#define MPL3115_SPEED		400000 / 10000   // 400khz


#ifdef	__cplusplus
}
#endif

#endif	/* DRIVERSENSORS_BARO_H */

